<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>{$System_namex}</title>
    <meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE" />
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/semantic.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/main.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/common.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/m2015.css" />
    <link href="__PUBLIC__/Css/master.css" rel="stylesheet" media="screen" type="text/css" />
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/jquery.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Base.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/prototype.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/mootools.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Ajax/ThinkAjax.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Form/CheckForm.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Util/ImageLoader.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/myfocus-1.0.4.min.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/all.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/jquery-1.11.3.min.js\"></sc"+"ript>")</script>
    <style>
        body{background:#fff!important;}
        #among .member #formStyle ul li.tn{width:180px;}
        #among .member #formStyle ul li.checkbox,#among .member #formStyle ul li.button{ margin-left:189px;}
        #among { width: 100%; border: inherit;}
        #wrapper { text-align: center; width: auto!important; width: 100%;  min-width: inherit; max-width: inherit; margin: auto;}
        #header, #among, #footer, #login{width: 100%;}
        #among .member {margin: 0;}
        .ipt{ width:100%; height:40px;margin-top:5px;border-radius: 5px;border: none;padding-left: 10px;}
        .tittle span{color:red;}
        .mar{margin: 5px;background: #b13a33; border:none;border-radius: 5px;color: #fff; height: 30px; width:70px;font-size: 14px;}
        .button{text-align: center;}
        .tittle{ width: 40%;font-size: 14px; font-weight: 500;float: left;height:50px;line-height: 50px;padding-left:15px; }
        .Prompt{font-size: 12px;}
        .input{ width: 60%;float: right}
        /*.to-right{text-align: right;padding-right: 15px;}*/
        .to-border{border-top:1px solid #eee;height:50px}
        .return{height: 40px;line-height: 40px;font-size:16px;padding-left:10px; border-bottom: 1px solid #f4f4f4;}
        .jiaobu{text-align: center;color: #fff; line-height: 100%; }
        .return a{height:40px;line-height: 40px;font-size: 16px;}

 .tit1{
            width:100%;
            text-align: center;
            height:50px;
            line-height:50px;
            font-size:16px;
            color: #fff;
            background: #c73934;
        }

        #formStyle .input {
            border-left:dashed 1px red;
        }

    </style>
    <load href="__PUBLIC__/Js/UserJs.js" />
</head>
<body>
 <div class="tit1">会员注册</div>
<div id="wrapper">
    <form method='post' id="form1" name="form1" action="__URL__/us_regAC"/>
    <div id="among">
        <div class="clear"></div>
        <div id="formStyle" style="margin-top:20px;">
            <!-- <div class="to-border">
                <div class="tittle" >所属代理中心</div>
                <div class="input" >
                    <input name="shopid"  type="text" id="shopid" value="{$zzc[1]}" class="ipt to-right" onKeyUp="guolv(this.name)" onBlur="javascript:yhServer(this.name,'0');" />
                    <input name="shopid" type="text" id="shopid" value="100000" class="ipt" onKeyUp="guolv(this.name)" onBlur="javascript:yhServer(this.name,'0');" />-->
                <!-- </div> -->
                <!--<div class="Prompt"   >请填写所属报单中心编号</div>-->
                <!-- <div class="clear"></div> -->
            <!-- </div>  -->
            <div class="to-border">
                <div class="tittle">推荐人编号</div>
                <div class="input"><input name="RID"  id="RID" type="text" value="{$rs['user_id']}" class="ipt to-right" /></div>
                <!-- <div class="Prompt" >推荐人账号</div> -->
                <div class="clear"></div>
            </div>
             <!-- <div class="to-border">
                <div class="tittle">接点人</div>
                <div class="input"><input name="FID"  id="RID" type="text" value="" class="ipt to-right" onKeyUp="guolv(this.name)"  onBlur="javascript:yhServer(this.name,'1');"  /></div> -->
                <!--<div class="Prompt" >推荐人会员编号</div>-->
                <!-- <div class="clear"></div> -->
            <!-- </div> -->
            <div class="to-border">
                <div class="tittle">用户编号</div>
                <div class="input hover"><input name="userid"  type="text" id="userid" class="ipt to-right" value="" onafterpaste="this.value=this.value.replace(/\D/g,'')"/></div>
                <!-- <div class="Prompt hover" >使用该账号来登陆系统</div>-->
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle">用户名称</div>
                <div class="input"><input name="Name" type="text" class="ipt"  id="Name" value="" maxlength="10"/></div>
                <!--<div class="Prompt hover" >请填写您的用户名称</div> -->
                <div class="clear"></div>
            </div>
            <!--<div class="to-border">
                <div class="tittle">真实姓名</div>
                <div class="input"><input name="UserName" type="text" class="ipt"  id="UserName" value="" maxlength="20"/></div>
                &lt;!&ndash; <div class="Prompt hover" >请填写您的真实姓名</div>&ndash;&gt;
                <div class="clear"></div>
            </div>-->

            <div class="to-border">
                <div class="tittle">一级密码</div>
                <div class="input">  <input name="Password" type="password" id="Password" value="" class="ipt " /></div>
                <!--<div class="Prompt hover" >请填写密码</div>-->
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle">确认一级密码</div>
                <div class="input"><input name="shorePasswordpid" type="password" id="rePassword" value="" class="ipt"/></div>
                <!--<div class="Prompt hover" >请确认密码</div>-->
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle">二级密码</div>
                <div class="input"><input name="PassOpen" type="password" id="PassOpen" value="" class="ipt" /></div>
                <!--<div class="Prompt hover" >请填写二级密码</div>-->
                <div class="clear"></div>
            </div>

            <div class="to-border">
                <div class="tittle">确认二级密码</div>
                <div class="input"><input name="rePassOpen" type="password" id="rePassOpen" value="" class="ipt"  /></div>
                <!--<div class="Prompt hover" >请确认二级密码</div>-->
                <div class="clear"></div>
            </div>

           <!--  <div class="to-border">
                <div class="tittle">密保问题</div>
                <div class="input"><select name="wenti"  class="select ipt"><volist name='wentilist' id='voo'><option value="{$voo}" <eq name="key" value="0">selected</eq> >{$voo}</option></volist></select></div> -->
                <!--<div class="Prompt hover" >请选择密保问题</div>-->
              <!--   <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle">密保答案</div>
                <div class="input"><input name="wenti_dan" type="text" class="ipt"  id="wenti_dan" value="" maxlength="255"/></div> -->
                <!--<div class="Prompt hover" >请填写密保答案</div>-->
           <!--      <div class="clear"></div>
            </div> -->


            <!--<div class="to-border">
                <div class="tittle">开户银行</div>
                <div class="input">
                    <select name="BankName" class="select ipt">
                        <option value="">请选择</option>
                    <volist name='bank' id='voo'>
                        <option value="{$voo}">{$voo}</option>
                    </volist>
                    </select></div>
                &lt;!&ndash; <div class="Prompt hover" >请选择开户银行</div> &ndash;&gt;
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle">银行卡号</div>
                <div class="input"><input name="BankCard" type="text" class="ipt" id="BankCard" value="" maxlength="19"/></div>
                &lt;!&ndash; <div class="Prompt hover" >请填写银行卡号</div> &ndash;&gt;
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle">真实姓名</div>
                <div class="input"><input name="Name" type="text" class="ipt"  id="Name" value="" maxlength="10"/></div>
                &lt;!&ndash; <div class="Prompt hover" >请填写您的真实姓名</div> &ndash;&gt;
                <div class="clear"></div>
            </div>
            <div  class="to-border">
                <div class="tittle">支付宝</div>
                <div class="input"><input name="account" type="text" class="ipt" id="account" value="" /></div>
                &lt;!&ndash; <div class="Prompt hover" >请填写支付宝账号</div> &ndash;&gt;
                <div class="clear"></div>
            </div>-->
            <!-- <div  style="display: none" class="to-border">
                <div class="tittle"> 省份</div>
                <div class="input"><select name="BankProvince" id="s1" class="select"><option></option></select></div>
                <div class="Prompt hover" >请选择省份</div>
                <div class="clear"></div>
            </div>

            <div  style="display: none" class="to-border">
                <div class="tittle"><span class="zc_hong">*</span> 城市</div>
                <div class="input"><select name="BankCity" id="s2" class="select"><option></option></select></div>
                <div class="Prompt hover" >请选择城市</div>
                <div class="clear"></div>
            </div>

            <div  style="display: none" class="to-border">
                <div class="tittle"><span class="zc_hong">*</span> 邮箱</div>
                <div class="input">
                    <input name="UserEmail" type="text" class="ipt" id="UserEmail" onKeyUp="javascript:Null_Int(this.name)" value="" maxlength="19"/>
                </div>
                <div class="Prompt hover" >邮箱</div>
                <div class="clear"></div>
            </div>

            <div  style="display: none" class="to-border">
                <div class="tittle"> 详细开户地址</div>
                <div class="input"><input name="BankAddress" type="text" class="ipt" id="BankAddress" value="" /></div>
                <div class="Prompt hover" >请填写详细开户地址</div>
                <div class="clear"></div>
            </div> -->

            <!-- <div  style="display: none" class="to-border">
                <div class="tittle">身份证号码</div>
                <div class="input"><input name="UserCode" type="text" class="ipt" id="UserCode" maxlength="18"/></div> -->
                <!--<div class="Prompt hover" >请填写身份证号码</div>-->
               <!--  <div class="clear"></div>
            </div> -->
         <!--<div  style="display: none" class="to-border">
                <div class="tittle">微信号</div>
                <div class="input"><input name="UserWeixin" type="text" class="ipt"  id="UserWeixin" onKeyUp="javascript:Null_Full(this.name)" value="" /></div> -->
                <!--<div class="Prompt hover" >请填写微信号</div>-->
                <!-- <div class="clear"></div>
            </div> -->

            <!--<div class="to-border">
                <div class="tittle">电话</div>
                <div class="input"><input name="UserTel" type="text" class="ipt"  id="UserTel"  maxlength="11" value="" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"/></div>
                &lt;!&ndash; <div class="Prompt hover" >请填写手机号</div> &ndash;&gt;
                <div class="clear"></div>
            </div>-->

            <!-- <div style="display:none;" class="to-border">
                <div class="tittle">验证码</div>
                <div class="input"><input name="verify" type="text" class="ipt"  id="verify"  maxlength="6" value="{$Think.session.YAN_ZHENG_MA}"/></div>
                <div class="Prompt hover" style="margin-top: 10px;margin-bottom: 10px;text-align: center"><input type="button" name="btn" id="btn_verify" value="免费获取验证码" onClick="JavaScript:getmobliemsg()" style="font-size: 14px;width:150px; height:30px; line-height:30px;background: #19b2f8;border: none;border-radius: 5px;color: #fff;"/></div>
                <div class="clear"></div>
            </div> -->
            <!--<div class="to-border" style="height: 150px;" >
                <div class="tittle" style="height: 150px;line-height: 150px">注册级别</div>
                <div class="input">
                    <volist name="s1" id="svo">
                    <input name="u_level" type="radio" id="radio" value="{$key+1}" <eq name="key" value="0"> checked="checked"</eq>   />
                    <strong><span class="STYLE3">&lt;!&ndash; {$s9[$key]}&nbsp; &ndash;&gt;{$svo}({$HYNM[$key+1]}￥)</span></strong><br/>
                    </volist>
                </div>
                &lt;!&ndash; <div class="Prompt hover" >请选择投资金额</div> &ndash;&gt;
                <li class="clear"></li>
            </div>-->

            <!-- <div class="to-border" style="display: none;">
                <div class="tittle">收货姓名</div>
                <div class="input"><input name="receive_name" type="text" class="ipt"  id="receive_name" onFocus="notice('20','')" value=""/></div>
                <div class="Prompt hover" >请填写您的收货姓名</div>
                <div class="clear"></div>
            </div>

            <div class="to-border" style="display: none;">
                <div class="tittle">收货电话</div>
                <div class="input"><input name="receive_tel" type="text" class="ipt"  id="receive_tel" onFocus="notice('20','')" maxlength="11" value=""/></div>
                <div class="Prompt hover" >请填写您的收货电话</div>
                <div class="clear"></div>
            </div>

            <div class="to-border" style="display: none;">
                <div class="tittle">收货地址</div>
                <div class="input"><input name="receive_address" type="text" class="ipt"  id="receive_address" onFocus="notice('20','')" value=""/></div>
                <div class="Prompt hover" >请填写您的收货地址</div>
                <div class="clear"></div>
            </div>

            <div  style="display: none" class="to-border">
                <div class="checkbox"><input type="checkbox" checked="checked">我已阅读并同意
                    <a style="cursor:pointer;color:#f00;">《查看用户注册协议》</a>
                </div>
                <div class="clear"></div>
            </div> -->
            <div class="to-border">
                <div class="button">
                    <input name="submit1" id="Access" type="submit" value="注册会员" class="mar"/>
                    <!-- <input name="重置" type="reset" class="button_text1 mar" value="重置" id="重置" /> -->
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    </form>
    <!--<div class="nr" style="text-align: center"><p style="font-size:24px; color:#f00;">用户注册协议</p>-->
    <div class="nr" style="text-align: left">
        <p style="font-size:24px; color:#f00;">
            <a href="__APP__/Reg/agent_reg/rid/{:I('get.rid')}" style="font-size:20px; color:#f00;"   >
                去注册代理中心
            </a>
        </p>
        <div style="width:50%;margin: 0 auto; word-wrap:break-word; word-break:normal;" >{$from_rs['content']}</div>
    </div>
    <!--</div>-->
</div>

<script language="javascript">
    var PUBLIC	 =	 '/Public';
    ThinkAjax.image = [	 '/Public/Images/loading2.gif', '/Public/Images/ok.gif','/Public/Images/update.gif' ]
    ThinkAjax.updateTip	=	'发送中～';
    function loginHandle(data,status){
        if (status==1)
        {
            $('result').innerHTML	=	'<span style="color:blue"><img SRC="/Public/Images/ok.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="" align="absmiddle" > 登录成功！3 秒后跳转～</span>';
            $('form1').reset();
            window.location = '/index.php/Public';
        }else{
            fleshVerify();
        }
    }
    function keydown(e){
        var e = e || event;
        if (e.keyCode==13)
        {
            ThinkAjax.sendForm('form1','/index.php/Public/checkLogin/',loginHandle,'result');
        }
    }
    function fleshVerify(type){
//重载验证码
        var timenow = new Date().getTime();
        if (type)
        {
            $('verifyImg').src= '/index.php/Public/verify/adv/1/'+timenow;
        }else{
            $('verifyImg').src= '/3mmm/mmm/index.php/Public/verify/'+timenow;
        }

    }

    function yhServer(Ful,lx){
        var str = $F(Ful).replace(/^\s+|\s+$/g,"");
        var re = /[^(\w){6,20}$]/g;
        str = str.replace(re,"");
        document.getElementById(Ful).value = str;
        if (str != ""){
            if(lx==0){ThinkAjax.send('__APP__/Fck/check_shopid/','ajax=1&shopid='+str,'',Ful+'1');}
            if(lx==1){ThinkAjax.send('__APP__/Fck/check_reid/','ajax=1&reid='+str,'',Ful+'1');}
            if(lx==2){ThinkAjax.send('__APP__/Fck/check_fid/','ajax=1&fid='+str,'',Ful+'1');}
            if(lx==3){ThinkAjax.send('__APP__/Fck/check_userid/','ajax=1&userid='+str,'',Ful+'1');}
        }
    }

    function guolv(Ful){
        var str = $F(Ful).replace(/^\s+|\s+$/g,"");
        var re = /[^(\w){6,20}$]/g;
        str = str.replace(re,"");
        document.getElementById(Ful).value = str;
    }
    window.onload = function(){
        fleshVerify();
    }

</script>
<script language = JavaScript>
    var s=["s1","s2"];
    var opt0 = ["请选择","请选择"];
    function setup()
    {
        for(i=0;i<s.length-1;i++)
            document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")");
        change(0);
    }
    setup();
</script>

<script>
    function getmobliemsg(){
        var tel = $("#UserTel").val();

        var btn = document.getElementById("btn_verify");

        var length=tel.length;

        if (length==0)
        {
            alert('用于登陆的手机号码不能为空...');
            return;
        }
        if(/^(13[0-9]|14[0-9]|15[0-9]|18[0-9]|17[0-9])\d{8}$/i.test(tel))
        {

            time(btn);
            $.post("__URL__/createActiveCode",{moblie:tel});

        }
        else{
            alert('手机号码格式不正确请重新输入...');
            return;
        }
    }
    var wait=120;
    function time(o) {
        if (wait == 0) {
            o.removeAttribute("disabled");
            o.value="免费获取验证码";
            wait = 120;
        } else {
            o.setAttribute("disabled", true);
            o.value=wait+"秒钟后可以重新发送";
            wait--;
            setTimeout(function() {
                        time(o)
                    },
                    1000)
        }
    }

</script>